<!--
  Generated template for the MettingdetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar text-center color="primary">
    <ion-buttons end>
      <button ion-button icon-only *ngIf="sfsh"  (click)="share()" >
        <ion-icon name="md-share"></ion-icon>
      </button>
      <button ion-button icon-only *ngIf="wfq=='1' &&mettingdetil!=null&&mettingdetil.sfsh=='1'" (click)="addsummary()" >
        <ion-icon name="add"></ion-icon>
      </button>
    </ion-buttons>
    <ion-title>会议详情</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-list *ngIf="mettingdetil!=null" >
    <ion-item-group>
      <ion-item-divider color="light">会议主题</ion-item-divider>
      <ion-item>
        <ion-label class="item-label">主题</ion-label>
        <ion-label class="item-value">{{mettingdetil.topic}}</ion-label>
      </ion-item>
      <ion-item>
        <ion-label class="item-label">开始时间</ion-label>
        <ion-label class="item-value" style="overflow:visible">{{mettingdetil.kssj|date: 'yyyy-MM-dd HH:mm:ss'}}</ion-label>
      </ion-item>
    </ion-item-group>
    <br>
    <ion-item-group>
      <ion-item-divider color="light">会议详述</ion-item-divider>
      <ion-textarea readonly="true" class="area" autosize [(ngModel)]="mettingdetil.desc"></ion-textarea>
    </ion-item-group>
    <ion-item-group>
      <ion-item-divider color="light">参会人员</ion-item-divider>
      <ion-item *ngFor="let person of mettingdetil.mettinPersonsList">
        <ion-label class="item-label">{{person.name}}</ion-label>
        <ion-label class="item-value">{{person.xb == '0'?'女':'男'}}</ion-label>
      </ion-item>
    </ion-item-group>
    <ion-item-group *ngIf="mettingdetil.zlurl!=null">
      <ion-item-divider color="light">资料下载</ion-item-divider>
      <button  ion-button icon-right clear (click)="downfile()">
        <ion-icon style="font-size: 50px" name="attach"></ion-icon>
      </button>
    </ion-item-group>
    <ion-item-group *ngIf="mettingdetil.hyzj!=null">
        <ion-item-divider color="light">会议总结</ion-item-divider>
        <ion-textarea readonly="true" class="area" autosize [(ngModel)]="mettingdetil.hyzj"></ion-textarea>
      </ion-item-group>
  </ion-list>
</ion-content>

<ion-footer *ngIf="(mettingdetil!=null&&mettingdetil.sfsh=='0' && usertype=='0') || (intype!=null && intype=='0')">
  <button ion-button *ngIf="mettingdetil!=null&&mettingdetil.sfsh=='0' && usertype=='0'"  block (click)="mettingsh()">审核</button>
  <button ion-button *ngIf="intype!=null && intype=='0' &&mettingdetil!=null&& mettingdetil.sfsh=='1'"  block (click)="checkinmetting()">签到进入会议</button>
</ion-footer>
